package class_object

/**
 * Created by CJJ on 2017/7/13.
 *
 */
fun main(args: Array<String>) {
    var p = Person()
    p.name = "jack"
    p.age = 23
    p.id = "4210"

    println(p)
    var clothA = Clothes("Nike", 100)

    var clothB = Clothes(null, 0)



    println("Cloth A name is  " + (clothA.name ?: "Naked"))
    println("Cloth B name is  " + (clothB.name ?: "Naked"))
    val (name, price) = clothA
    println("destructed name = $name ,price =$price")


}

